package psn.polaris.http.dto;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;

public class HttpRequestDTO implements Serializable {

    private static final long serialVersionUID = -4187545492676137686L;
    /**
     * 请求地址
     */
    private final List<String> requestUrls = new ArrayList<>();
    /**
     * 请求头地址
     */
    private final HashMap<String, String> header = new HashMap<>();
    /**
     * 请求参数
     */
    private final HashMap<String, String> requestMap = new HashMap<>();
    /**
     * 应答参数
     */
    private final HashMap<String, String> respMap = new HashMap<>();
    /**
     * 结果参数
     */
    private final HashMap<Integer, byte[]> resultMap = new HashMap<>();
    /**
     * HttpMethod参数
     */
    private HttpMethod method;
    /**
     * Http同步异步标识
     */
    private HttpSync sync;
    /**
     * 回调方法
     */
    private String respBeanId;

    public List<String> getRequestUrls() {
        return requestUrls;
    }

    public HashMap<String, String> getHeader() {
        return header;
    }

    public HashMap<String, String> getRequestMap() {
        return requestMap;
    }

    public HashMap<String, String> getRespMap() {
        return respMap;
    }

    public HashMap<Integer, byte[]> getResultMap() {
        return resultMap;
    }

    public HttpMethod getMethod() {
        return method;
    }

    public void setMethod(HttpMethod method) {
        this.method = method;
    }

    public HttpSync getSync() {
        return sync;
    }

    public void setSync(HttpSync sync) {
        this.sync = sync;
    }

    public String getRespBeanId() {
        return respBeanId;
    }

    public void setRespBeanId(String respBeanId) {
        this.respBeanId = respBeanId;
    }
}
